package example;

import com.alibaba.fastjson2.JSON;
import com.easyaop.api.Arounds;
import com.easyaop.api.advisor.MethodPointcut;
import com.easyaop.core.AroundsImpl;
import ognl.Ognl;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.util.Arrays;
import java.util.HashMap;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) throws Exception {
        String cmd = args[0];
        String[] cmdArgs = Arrays.stream(args).skip(1).toArray(String[]::new);

        Class.forName(Main.class.getPackage().getName()+"."+cmd)
                .getMethod("main",String[].class)
                .invoke(null,(Object) cmdArgs);
    }
}